package com.sudo.dao.admin.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "sys_user_behavior")
public class SysUserBehavior {
    /**
     * 乐观锁
     */
    @Id
    private Long id;

    /**
     * 用户账户
     */
    private String username;

    @Column(name = "roleCode")
    private String roleCode;

    /**
     * 返回状态
     */
    @Column(name = "respStatus")
    private Integer respStatus = 0;

    /**
     * 客户IP
     */
    @Column(name = "clientIp")
    private String clientIp;

    private String country;

    private String province;

    private String city;

    /**
     * 操作事件
     */
    @Column(name = "operEvent")
    private String operEvent;

    /**
     * 访问路径
     */
    @Column(name = "reqUrl")
    private String reqUrl;

    /**
     * 操作方法
     */
    @Column(name = "operMethod")
    private String operMethod;

    /**
     * 请求类型
     */
    @Column(name = "reqType")
    private String reqType;

    /**
     * 查询参数
     */
    @Column(name = "reqParam")
    private String reqParam;

    /**
     * 访问时间
     */
    @Column(name = "operTime")
    private String operTime;
    /**
     * 请求耗时
     */
    @Column(name = "useTime")
    private Long useTime;

    /**
     * 获取乐观锁
     *
     * @return id - 乐观锁
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置乐观锁
     *
     * @param id 乐观锁
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取用户账户
     *
     * @return username - 用户账户
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置用户账户
     *
     * @param username 用户账户
     */
    public void setUsername(String username) {
        this.username = username;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getOperEvent() {
        return operEvent;
    }

    public void setOperEvent(String operEvent) {
        this.operEvent = operEvent;
    }

    public String getReqUrl() {
        return reqUrl;
    }

    public void setReqUrl(String reqUrl) {
        this.reqUrl = reqUrl;
    }

    public String getOperMethod() {
        return operMethod;
    }

    public void setOperMethod(String operMethod) {
        this.operMethod = operMethod;
    }

    public String getReqType() {
        return reqType;
    }

    public void setReqType(String reqType) {
        this.reqType = reqType;
    }

    public String getReqParam() {
        return reqParam;
    }

    public void setReqParam(String reqParam) {
        this.reqParam = reqParam;
    }

    public String getOperTime() {
        return operTime;
    }

    public void setOperTime(String operTime) {
        this.operTime = operTime;
    }

    public Integer getRespStatus() {
        return respStatus;
    }

    public void setRespStatus(Integer respStatus) {
        this.respStatus = respStatus;
    }

    public Long getUseTime() {
        return useTime;
    }

    public void setUseTime(Long useTime) {
        this.useTime = useTime;
    }

    @Override
    public String toString() {
        return "SysUserBehavior{" +
                "username='" + username + '\'' +
                ", roleCode='" + roleCode + '\'' +
                ", respStatus='" + respStatus + '\'' +
                ", clientIp='" + clientIp + '\'' +
                ", operEvent='" + operEvent + '\'' +
                ", reqUrl='" + reqUrl + '\'' +
                ", operMethod='" + operMethod + '\'' +
                ", reqType='" + reqType + '\'' +
                ", reqParam='" + reqParam + '\'' +
                ", operTime='" + operTime + '\'' +
                ", useTime='" + useTime + '\'' +
                '}';
    }
}
